package com.zhouyu.service;

import org.springframework.context.ApplicationListener;
import org.springframework.context.PayloadApplicationEvent;
import org.springframework.stereotype.Component;

@Component
public class MyPayloadApplicationEventListener implements ApplicationListener<PayloadApplicationEvent> {
	@Override
	public void onApplicationEvent(PayloadApplicationEvent event) {
		System.out.println("MyPayloadApplicationEventListener payload:" + event.getPayload() + " event:" + event);
	}
}
